package cn.etg.facatory.method;


public class LNSuShiStore extends SuShiStore{
    private SuShi suShi;
    @Override
    public SuShi makeSuShi(String type) {
        if("tuna".equalsIgnoreCase(type)){
            suShi = new TunaSuShi(type);
        }else if("vegetable".equalsIgnoreCase(type)){
            suShi = new VegetableSuShi(type);
        }
        return suShi;
    }

    @Override
    public SuShi sellSuShi(String type) {
        SuShi suShi = makeSuShi(type);
        prepare(suShi);
        make();
        finish(suShi);
        return suShi;
    }
}
